import { useRoutes } from 'react-router-dom'

// 懒加载需要使用到
import { Suspense } from 'react'

import routes from './router/index'

const App = () => {
    let route = useRoutes(routes)
    return (
        <>
            <Suspense fallback={<>Loading....</>}>
                {route}
            </Suspense>
        </>
    )
}


export default App